
package org.xteam.sled.ast;

import org.xteam.parser.runtime.Span;

public class RangeGenerator extends Generator {
	
	
	protected IntegerLiteral from;
	protected IntegerLiteral to;
	protected IntegerLiteral step;
	
	public RangeGenerator(Span span, IntegerLiteral from,IntegerLiteral to,IntegerLiteral step) {
		super(span);
		this.from = from;
		this.to = to;
		this.step = step;
	}
	
	
	public IntegerLiteral getFrom() {
		return from;
	}
	
	public void setFrom(IntegerLiteral from) {
		this.from = from;
	}
	
	public IntegerLiteral getTo() {
		return to;
	}
	
	public void setTo(IntegerLiteral to) {
		this.to = to;
	}
	
	public IntegerLiteral getStep() {
		return step;
	}
	
	public void setStep(IntegerLiteral step) {
		this.step = step;
	}
	

	public void visit(ISledVisitor visitor) {
		visitor.visitRangeGenerator(this);
	}
}
